<?php

function ec_scarab_rules_defaults() {
	$myrules = array (
			'rules' => 
			array (
				'ec_scarab_addtocart_rule' => // call scarab js for adding to cart
				array (
					'#type' => 'rule',
					'#set' => 'event_ec_cart_add',
					'#label' => 'ec_scarab add to cart',
					'#active' => 1,
					'#weight' => '0',
					'#categories' => 
					array (
						'ec_store'
						),
					'#status' => 'fixed',
					'#conditions' => 
					array (
						),
					'#actions' => 
					array (
						0 => 
						array (
							'#type' => 'action',
							'#settings' => 
							array (
								'auto_save' => 0,
								'#argument map' => 
								array (
									'node' => 'product',
									),
								),
							'#name' => 'rules_core_ec_scarab_added_to_cart_action',
							'#info' => 
							array (
								'module' => 'Node',
								'arguments' => 
								array (
									'node' => 
									array (
										'label' => 'Content',
										'type' => 'node',
										),
									),
								'label' => 'call scarabs added to cart function',
								'base' => 'rules_core_action_execute',
								'action_name' => 'ec_scarab_added_to_cart_action',
								'configurable' => false,
								),
								  '#weight' => 0,
							),
						),
						'#version' => 6003,
					),
					'ec_scarab_checkout_rule' => // add scarabresearch js for checkout
						array (
								'#type' => 'rule',
								'#set' => 'event_ec_checkout_after_process',
								'#label' => 'ec checkout scarab',
								'#active' => 1,
								'#weight' => '0',
								'#categories' => 
								array (
										'ec_store'
									),
								'#status' => 'fixed',
								'#conditions' => 
								array (
									),
								'#actions' => 
								array (
									0 => 
									array (
										'#weight' => 0,
										'#info' => 
										array (
											'module' => 'e-Commerce',
											'arguments' => 
											array (
												'transaction' => 
												array (
													'label' => 'Transaction',
													'type' => 'transaction',
													),
												),
											'label' => 'Scarab: checkout',
											'base' => 'rules_core_action_execute',
											'action_name' => 'ec_scarab_checkout_action',
											'configurable' => false,
											),
										'#name' => 'rules_core_ec_scarab_checkout_action',
										'#settings' => 
										array (
											'auto_save' => 0,
											'#argument map' => 
											array (
												'transaction' => 'txn',
												),
											),
										'#type' => 'action',
										),
									),
								'#version' => 6003,
						),

		  )
	);
	return $myrules;
}
